import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
//路由
const routes = [{
  path: '/',
  redirect: '/welcome'
},
{
  path: '/welcome',
  name: 'Welcome',
  meta: { show: true },
  component: () => import('../pages/welcome'),
}
,{
  path: '/home',
  name: 'Home',
  component: () => import('../pages/home'),
},
{
  path: '/flower',
  name: 'flower',
  component: () => import('../pages/flower.vue'),
},
{
  path: '/shoppingCart',
  name: 'ShoppingCart',
  component: () => import('../pages/shoppingCart.vue'),
}
]

const router = new VueRouter({
  routes
})

export default router
